import React, { useState } from "react";
import Todolist from "./Todolist";

function App() {
    // 控制todolist显示还是隐藏
    const [isShow,setisShow]=useState(true);

    return (
        <div className="APP">
            <button onClick={()=>setisShow(!isShow)}>显示/隐藏</button>
            {isShow?<Todolist/>:''}
        </div>
    )
}

export default App;
